package com.unify.type;

import java.util.List;

import com.comm.util.contract.ITreeNode;

public class Department implements ITreeNode<Department>{

	private Integer id;
	
	private String corpid;
	
	private String name;
	
	private Integer parentid;
	
	private List<Department> children;
	
	private List<StaffByExploringHorses> users;

	// getters and setters

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCorpid() {
		return corpid;
	}

	public void setCorpid(String corpid) {
		this.corpid = corpid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getParentid() {
		return parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public List<Department> getChildren() {
		return children;
	}

	public void setChildren(List<Department> children) {
		this.children = children;
	}

	public List<StaffByExploringHorses> getUsers() {
		return users;
	}

	public void setUsers(List<StaffByExploringHorses> users) {
		this.users = users;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

}
